﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FrmEditUserTemplet.aspx.cs" Inherits="ExamV5.PaperInfo.FrmEditUserTemplet" %>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <meta http-equiv="Content-Language" content="zh-cn" />
	<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <script type="text/javascript"  charset="gb2312"  language="javascript" src="../Image/calendar.js"></script>
    <link href="../Image/STYLE.CSS" rel="stylesheet" type="text/css" />    
    <script type="text/javascript" language="javascript">
        function ShowExpInfo(strFileName) {
            var top, left;
            var strURL
            strURL = "../FrmDownLoad.aspx?FileName=" + strFileName;
            top = screen.availHeight / 2 - 150;
            left = screen.availWidth / 2 - 150;
            strPro = "height=200, border=none, width=200, top=" + top.toString() + ", left=" + left.toString() + ",toolbar=no,menubar=no,scrollbars=yes,resizable=yes, location=no,status=no";
            window.open(strURL, '下载数据', strPro);
        }
        function CheckData() {
            if (document.getElementById("txtTemplateName").value == "") {
                alert("模板名称不可以为空！");
                document.getElementById("txtTemplateName").focus();
                return false;
            }

            if (document.getElementById("txtJoinUserNum").value == "" || document.getElementById("txtJoinUserNum").value == "0") {
                alert("抽考人数不可以为空！");
                document.getElementById("txtJoinUserNum").focus();
                return false;
            }
            
            return true;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server" >
    <table cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
       <tr>
			<td>
				<table cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
					<tr height="33">
						<td width="6"><img src="../Image/SHeadLeft.gif" border="0"></td>
						<td align="center" width="130" background="../Image/SHeadLeft1.gif" height="33"><font color="white"><b>编辑人员模板</b></font></td>
						<td width="7"><img src="../Image/SHeadLeft2.gif" border="0"></td>
						<td  background="../Image/SHeadLeft3.gif" height="33" width="550"></td>
						<td width="10"><img src="../Image/SHeadLeft4.gif" border="0"></td>
					</tr>
				</table>
			</td>
		</tr>
		<tr height="10">
			<td></td>
		</tr>
		<tr>
		    <td>
            
				<table id="table2" borderColor="#cccccc" cellSpacing="0" borderColorDark="#cccccc" cellPadding="0"
							width="99%" align="center" border="1" class="tableStyle">
							<tr height="35">
								<td bgColor="#d4e5f5">&nbsp;<img src="../Image/MenuICO/Choose23.gif" border="0"  style='POSITION:relative;TOP:3px'><strong> <font color="#003399">一、编辑抽考人员模板详细信息</font></strong></td>
							</tr>
                           <tr>
								<td>
									<table id="table3" borderColor="#cccccc" cellSpacing="0" borderColorDark="#cccccc" cellPadding="0"
										width="100%" align="center" border="1" class="tableStyle">
                                        <tr bgColor="#ffffff" height="30">
											<td align="right" width="80"><font color="red">*</font> 模板名称：</td>
											<td>
                                                <asp:TextBox ID="txtTemplateName" runat="server" CssClass="text" Width="350" style="height:25px"></asp:TextBox>
                                            </td>
										</tr>
                                        <tr bgColor="#f5fcfe" height="30">
											<td align="right" width="80"><font color="red">*</font> 抽考人数：</td>
											<td align="left">
                                                <asp:TextBox id="txtJoinUserNum" runat="server" Width="80px" CssClass="text"  onKeypress="javascript:if (event.keyCode < 48 || event.keyCode > 57) event.returnValue = false;"
													style="IME-MODE:disabled:height:26px" onpaste='return false' MaxLength="3"></asp:TextBox>人
                                            </td>
                                            </tr>
                                         <tr bgColor="#ffffff" height="30">
											<td align="right" width="80"><font color="red">*</font> 人员分布：</td>
											<td>
                                            
                                                <asp:GridView ID="DataGridInfo" runat="server" AutoGenerateColumns="False" CellPadding="5" BorderWidth="1px" Width="100%" 
                                            CssClass="tableStyle" BackColor="White" 
                                            onrowdatabound="DataGridInfo_RowDataBound" 
                                            DataKeyNames="ID,UPID" >
							            <HeaderStyle Font-Bold="True" HorizontalAlign="Center" CssClass="tabth_bg" ForeColor="#143F61"></HeaderStyle>
							            <FooterStyle ForeColor="#000066" BackColor="White"></FooterStyle>
                                            <Columns>
                                                
                                                <asp:BoundField DataField="DeptName" HeaderText="单位/部门名称">
                                                </asp:BoundField>
                                                <asp:TemplateField HeaderText="人员总数">
															<HeaderStyle Width="70px"></HeaderStyle>
															<ItemTemplate>
																<asp:Label id="labUserCount" runat="server" ForeColor="#C00000" Font-Bold="True">0</asp:Label>
															</ItemTemplate>
														</asp:TemplateField>
                                                <asp:TemplateField HeaderText="抽考人数">
															<HeaderStyle Width="80px"></HeaderStyle>
															<ItemTemplate>
																<asp:TextBox onkeypress="javascript:if (event.keyCode < 48 || event.keyCode > 57) event.returnValue = false;"
														style="IME-MODE:disabled;height:26px" onpaste='return false' id="txtJoinUser" runat="server" Height="20" MaxLength="3"
														CssClass="text" Width="60px"></asp:TextBox>
															</ItemTemplate>
														</asp:TemplateField>
                                            </Columns>
                                        <PagerStyle HorizontalAlign="Right" />
           
                                     </asp:GridView>
                                            
                                            </td>
										</tr>
                                        
									</table>
                                        	
								</td>
							</tr>
                            
                   </table>	
                   <table id="table1" borderColor="#cccccc" cellSpacing="0" borderColorDark="#ffffff" cellPadding="0"
							width="99%" align="center" border="0"><tr>
								            <td align="center"><br />
                                            <asp:Button ID="butEnter" runat="server" Text="提  交" 
                                                    CssClass="but2B"   OnClientClick="return CheckData();" 
                                                    onclick="butEnter_Click" />
                                            <asp:Button ID="butClose" runat="server" Text="关  闭" CssClass="but2R"   OnClientClick="javascript:window.close();" /><br /><br /></td>
							            </tr>
                   </table>	
                   
            </td>
        </tr> 
         </table>
         
    </form>
</body>
</html>
